﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StockPoint.Admin.General
{
    public partial class Main : BasePage
    {
        /// <summary>
        /// 페이지 초기화.
        /// </summary>
        protected override void InitPage()
        {
        }

        protected void btnTest_Click(object sender, EventArgs e)
        {
            lblTest.Text = SPCode.GetCodeName(CodeType.BannerType, "1");

            DataTable dt = SPCode.GetCodeList(CodeType.BannerType);

            ddlBannerType.DataTextField = "CodeName";
            ddlBannerType.DataValueField = "Code";
            ddlBannerType.DataSource = dt;
            ddlBannerType.DataBind();



        }
    }
}